{extend name="template/base" /}
{block name="content"}
<div class="page-container">
    <div class="cl pd-5 bg-1 bk-gray">
    </div>
    <table class="table table-border table-bordered table-hover table-bg mt-20">
        <thead>
        <tr class="text-c">
            <th >编号</th>
            <th >类型</th>
            <th >操作</th>
        </tr>
        </thead>
        <tbody>
        {volist name="list" id="vo"}
        <tr class="text-c">
            <td>{$vo.id}</td>
            <td>
                {if condition="$vo.type eq 1"}用户协议{else/}隐私协议{/if}
            </td>
            <td class="f-14">
                {tp:access action="edit"}
                <a class="label btn-success radius" style="background-color:#5eb95e" href="javascript:;" onclick="layer_open('编辑','{:\\think\\Url::build(\'edit\', [\'id\'=>$vo[\'id\']])}')">编辑</a>
                {/tp:access}
            </td>
        </tr>
        {/volist}
        </tbody>
    </table>
</div>
{/block}